from src.game.ability import Ability
from src.config.abilities import HEAL
from src.handler.sprite import SpriteHandler

class HealAbility(Ability):
    
    def __init__(self, health):
        Ability.__init__(self, HEAL)
        self.health = health
        
    def getSprite(self):
        return SpriteHandler.get("heal")
        
    def cast(self, client):
        client.world.player.heal(self.health)